From: Florian Müllner Date: Sat, 21 Feb 2015 18:08:27 +0000 (+0100) Subject: calendar: Fix quoting issues in notification titles X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1676 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=945caed602ce0951388e8d0cfd84c3e929f64cdd;p=gnome-shell.git calendar: Fix quoting issues in notification titles Markup in notification titles is not support (and never has been). Therefore the text is run through g_markup_escape_text(), and as a result we do have to use markup internally to correctly show legal-but-escape characters like '&' or '"'. https://bugzilla.gnome.org/show_bug.cgi?id=744894 --- diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 97a852384..eb1dd28b5 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -1049,7 +1049,7 @@ const Message = new Lang.Class({ setTitle: function(text) { let title = text ? _fixMarkup(text.replace(/\n/g, ' '), false) : ''; - this.titleLabel.text = title; + this.titleLabel.clutter_text.set_markup(title); }, setBody: function(text) {